﻿@using TaskManager.Web.Extensions

<!DOCTYPE html>
<html>
<head runat="server">
    <meta charset="utf-8" />
    <title>@ViewBag.Title</title>
    <link href="@Url.Content("~/Content/twitter-bootstrap-b37a336/bootstrap.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/Site.css")" rel="stylesheet" type="text/css" />
    <script src="@Url.Content("~/Scripts/jquery-1.5.1.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/modernizr-1.7.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Content/twitter-bootstrap-b37a336/js/bootstrap-dropdown.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Content/twitter-bootstrap-b37a336/js/bootstrap-modal.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Content/twitter-bootstrap-b37a336/js/bootstrap-alerts.js")" type="text/javascript"></script>
    <asp:contentplaceholder id="head" runat="server" />
</head>
<body>

@Html.Partial("_Header")

@{
    string contentClass = "content";

    if (!Request.IsAuthenticated)
    {
        contentClass = "content-not-auth";
    }
}

    <div class="container-fluid">
        @if (Request.IsAuthenticated)
        {
        <div class="sidebar">
            @Html.Partial("_Sidebar")
        </div>
        }
        else
        {
        <div class="about">
            @Html.Partial("_About")
        </div>
        }
        <div class="@contentClass">
            @Html.Partial("_Tabs", DependencyResolver.Current.GetService<TaskManager.Web.Controls.TabContainer>())
            <div class="page">
                @RenderBody()
            </div>
        </div>
    </div>
</body>
</html>
